package cn.edu.buu.news.service;

import cn.edu.buu.news.entity.Tool;
import cn.edu.buu.news.vo.PageQuery;
import cn.edu.buu.news.vo.PageResult;

import java.util.List;

public interface ToolService {
    void add(Tool tool);

    void deleteById(Long id);

    void update(Tool tool);

    Tool findById(Long id);

    List<Tool> findAll();

    PageResult<Tool> findByPage(PageQuery query);
}